import request from '@/utils/request';

import axios from 'axios';

export function getGuaranteeList() {
    return request({
        url: '/first-loan/getGuaranteeList.do',
        method: 'get'
    });
}

export function addGuarantee(info) {
    return request({
        url: '/first-loan/addGuarantee.do',
        method: 'post',
        data: info
    });
}

export function updateGuarantee(info) {
    return request({
        url: '/first-loan/updateGuarantee.do',
        method: 'post',
        data: info
    });
}

export function deleteGuarantee(id) {
    return request({
        url: `/first-loan/deleteGuarantee.do/${id}`,
        method: 'delete'
    });
}